/*顶栏*/
header {
    margin-top: 20px;
    background-color: #000000;
    color: #fff;
    padding: 10px;
    height: 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-right: 20px;
    margin-left: 20px;
}

#logo_container{
    display: flex;
    align-items: center;
}

#logo{
    color: #F9C73D;
    font-size: 24px;
    font-weight: bold;
    margin-right: 10px;
    z-index: 1;
}

#logo:hover{
    font-size: 30px;
    transition: 0.2s;
}

.icon{
    height: 30px;
    width: 30px;
    z-index: 1;
}

#user {
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}
#user a{
    margin-right: 10px;
}

#user_img{
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1;
    position: relative;
}

/*悬浮个人登录和退出*/
/* 悬浮菜单内容 */
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    /*background-color: #333;*/
    background-color: rgba(51, 51, 51, 0.8); /* 80% 不透明度的黑色背景 */
    /*min-width: 160px;*/
    width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    top: 47px;
    padding: 0;
    border-radius: 10px;
}

/* 悬浮菜单项 */
.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: center;
    vertical-align: middle;
}

/* 悬浮菜单项悬停样式 */
.dropdown-content a:hover {
    background-color: #575757;
}

/*!* 显示悬浮菜单 *!*/
/*#user_img:hover + .dropdown-content, !* 修改选择器 *!*/
/*.dropdown-content:hover {*/
/*    display: block;*/
/*}*/

/* 显示悬浮菜单 */
#user2:hover .dropdown-content,
#user2:hover #user_img,
#dropdown:hover {
    display: block;
}

#username_display{
    color: white;
    /*padding: 10px 0;*/
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    height: 50px;
}